package tests;

import centralSystem.CentralSystem;
import centralSystem.ICentralSystem;
import centralSystem.IPostCounter;
import centralSystem.counters.OneServiceCounter;
import devices.TicketPrinter;
import devices.Visualizer;

public class OneServiceCounterTest {

	public static void main(String[] args) {

		ICentralSystem sys = new CentralSystem(new TicketPrinter(), new Visualizer());
		IPostCounter pc = new OneServiceCounter(sys, 2);
		pc.nextService();
		System.out.println(sys.getNextClient(2));
		sys.addClientAtQueue(2);
		pc.nextService();
		System.out.println(sys.getNextClient(2));
	}
}
